<!-- 公共头部 -->
<body class="media_screen_1200">
	<!--右侧导航栏-->
	<div style="right: 0px;" class="mgj_rightbar">
		<!--空的右侧边栏-->
		<div id="mgj_rightbar_top_blank" class="mgj_rightbar_960">
		</div>
		<!--方便定margin的空div-->
		<div id="mgj_rightbar_blank_div">
		</div>
		<!--用户头像-->
		<!--购物车-->
		<div style="left: 0px;" class="sidebar-item mgj-my-cart">
			<a target="_blank" href="<?php echo U('Cart/index')?>" >
				<i class="s-icon">
				</i>
				<div class="s-txt">
					购物车
				</div>
				<div class="num">
					
				</div>
			</a>
		</div>
		
		<!--钱包-->
		<div class="sidebar-item mgj-my-wallet">
			<a target="_blank" href="<?php echo U('Member/wallet')?>">
				<i class="s-icon">
				</i>
				<!--我的钱包-->
				<div class="s-txt">
					钱包
				</div>
			</a>
		</div>
		<!--足迹-->
		<div class="sidebar-item mgj-my-browserlog">
			<a target="_blank" href="">
				<i class="s-icon">
				</i>
				<!--我的足迹-->
				<div class="s-txt">
					足迹
				</div>
			</a>
		</div>
		<!--返回顶部-->
		<div class="sideBottom">
			<div class="sidebar-item mgj-back2top show" style="left: 0px;">
				<a href="javascript:;">
					<i class="s-icon">
					</i>
				</a>
			</div>
		</div>
	</div>
	<!--右侧导航栏-结束->
	<!--顶部开始-->
	<div id="header" class="header_2015">
		<div class="wrap clearfix">
			<!-- 顶通 -->
			<a href="<?php echo U('Index/index')?>" class="home fl">
				蘑菇街首页
			</a>
			<ul class="header_top">
<!-- ================== -->
				<!-- 如果用户没有登录那就显示登录注册 -->
				<?php if(!Session::has('uid')){?>
                
				<li class="s1 ">
					<a  href="<?php echo U('User/register')?>">
						注册
					</a>
				</li>
				<li class="s1 ">
					<a  href="<?php echo U('User/login')?>">
						登录
					</a>
				</li>
				<?php }else{?>
				<!-- 如果用户已经登录那就显示用户的信息 -->
				<!-- 登陆之后出现 -->
				<li class="s1 has_icon user_meta haahah">
					<!-- 用户昵称 -->
					
					<a style="color:red;" href="javascript:;" >
						<?php echo $_SESSION['username']?>
					</a>

					<!-- 等级 -->
					<a target="_blank" href="" >
						<span class="level level0">
						</span>
					</a>
					<i class="icon_delta">
					</i>
					<ol id="menu_personal" class="ext_mode">
						<li class="s2">
							<a href="<?php echo U('Member/accountSettings')?>"  target="_blank" >
								个人设置
							</a>
						</li>
						
						<!-- 退出登录 -->
						<li class="s2">
							<a href="<?php echo U('User/out')?>"  >
								退出
							</a>
						</li>
					</ol>
				</li>
				<!-- ===================== -->
				<li class="s1 has_line message_center">
					<a class="ext_module mogutalk_btn J_msg open_msg micon __trace__"  href="javascript:;" rel="nofollow" >
						消息
						<span class="num m_num" style="display: none;">
						</span>
					</a>
				</li>
		
				
               <?php }?>
				<!-- ======= -->
				<!--我的订单-->
				<li class="s1 myorder has_line">
					<a href="<?php echo U('Member/index')?>" target="_blank" class="text display_u">
						我的订单
					</a>
				</li>
				<!--我的订单--结束-->
				<!--我的购物车-开始-->
				<li class="s1 has_line shopping_cart_v2">
					<a class="cart_info_wrap" href="" target="_blank">
						<span class="cart_info">购物车</span>
					</a>
					<i class="icon_delta">
					</i>
					<!-- ==== -->
					<!-- 顶部购物车效果 -->
					<script type="text/javascript">
							$(function(){
								$('.shopping_cart_v2').mouseover(function() {
									$('.shop_cart_info').css({display:"block"});
								});
								$('.shopping_cart_v2').mouseout(function() {
									$('.shop_cart_info').css({display:"none"});
								});
							})

					</script>
					<!-- ===== -->
					<!-- <div style="" class="shop_cart_info">
						<ul>
							<li>
								<a href="" target="_blank" class="imgbox">
									<img src="<?php echo __PUBLIC__?>/Home/images/1zlav6_ifrgim3dgvqtcyrqguzdambqmeyde_640x960.jpg_100x100.jpg" alt="" width="45">
								</a>
								<a href="" target="_blank" class="title">
									加厚毛领羽绒服衣外套
								</a>
								<span class="info">颜色：米白 尺码：M</span>
								<span class="price">¥244.30</span>
								<span class="del">删除</span>
							</li>
						</ul>
						<div class="subbox">
							<div class="fr">
								<a href="<?php echo U('Cart/index')?>" target="_blank" class="goel">
									查看购物车
								</a>
							</div>
						</div>
					</div> -->
					<!--如果是空的那就显示-->
					<div style="" class="shop_cart_info">
						<ul>
							<li>
								<span class="info">购物车还是空的的!!</span>
								<span>赶快来添加属于你的宝贝吧!</span>
							</li>
						</ul>
					</div>
					<!-- ======================================== -->
				</li>
				<!--我的购物车结束-->
				<!--客户服务-开始-->
				<li class="s1 has_line has_icon custom_item">
					<a rel="nofollow" href=""  target="_blank">
						客户服务
					</a>
					<i class="icon_delta">
					</i>
					<ol class="ext_mode">
						<li class="s2">
							<a target="_blank"  href="">
								联系合作
							</a>
						</li>
						<li class="s2">
							<a  href="" target="_blank">
								帮助
							</a>
						</li>
					</ol>
				</li>
				
			</ul>
		</div>
	</div>
	<!--顶部结束-->
	<!-- 中间区域 -->
	<div class="header_mid clearfix">
		<div class="wrap">
			<a  href="<?php echo U('Index/index')?>" class="logo" >
			</a>
			<div class="normal-search-content">
				<!--顶部隐藏搜索框-->
				<div class="top_nav_search" id="nav_search_form">
					<!---->
					<!--搜索框 -->
					<div class="search_inner_box clearfix">
						<div class="selectbox" >
							<span class="selected">搜商品</span>
							<ol>
								<li class="current" >
									<a href="#">
										商品
									</a>
								</li>
								<li data-index="shop">
									<a href="#">
										店铺
									</a>
								</li>
							</ol>
						</div>
						<!---------------------------搜索框-------------->
						<form action="" method="" id="top_nav_form">
							<input  name="q" class="ts_txt fl"  value="" type="text">
							<input value="搜  索" class="ts_btn" type="submit">
							<input name="t" value="bao" id="select_type" type="hidden">
						</form>
						<!-------------------------->
						<div style="display:none;" class="top_search_hint">
						</div>
					</div>
					<div class="ts_hotwords">
						<a  class="ts_hotword" style="color: #999999 " href="">
							呢外套
						</a>
						<a class="ts_hotword" style="color: #999999 " href="">
							风衣
						</a>
						<a class="ts_hotword" style="color: #999999 " href="">
							羽绒服
						</a>
						<a  class="ts_hotword" style="color: #999999 " href="">
							运动鞋
						</a>
						<a  class="ts_hotword" style="color: #999999 " href="">
							卫衣
						</a>
						<a class="ts_hotword" style="color: #999999 " href="">
							雪地靴
						</a>
						<a  class="ts_hotword" style="color: #999999 " href="">
							家居服
						</a>
						<a  class="ts_hotword" style="color: #999999 " href="">
							新款女包
						</a>
						<a class="ts_hotword" style="color: #999999 " href="">
							毛衣
						</a>
					</div>
				</div>
			</div>
		
			
		</div>
	</div>
